cmake_minimum_required(VERSION 3.16)
project(RayTracingSample)

set(CMAKE_CXX_STANDARD 17)

set(PROJECT_DIR ${CMAKE_SOURCE_DIR})
set(LIBS_DIR ${PROJECT_DIR}/lib)

add_subdirectory(lib/glm)


include_directories(${PROJECT_DIR})
include_directories(${LIBS_DIR})
include_directories(${LIBS_DIR}/glm)

set(SRC_FILES usage/Sphere.cpp
        usage/material/Lambertian.cpp
        usage/material/Metal.cpp
        usage/material/Dielectric.cpp
        usage/Camera.cpp
        usage/HittableList.cpp)

add_executable(RayTracingSample ${SRC_FILES} main.cpp)